<%--
  Created by IntelliJ IDEA.
  User: 浮槎北冥海茫茫
  Date: 2021/7/9
  Time: 10:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<!-- 网页使用的语言 -->
<html lang="zh-CN">
<head>

    <!-- 指定字符集 -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>决策</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery-2.1.0.min.js"></script>
    <script src="js/bootstrap.min.js"></script>

</head>
<body>
<div class="container" style="width: 400px;">
    <h3 style="text-align: center;">决策</h3>
    <form action="${pageContext.request.contextPath}/updateChangeListStateIdServlet?uid=${uid}&uname=${uname}" method="post">
        <div class="form-group">

            <input type="hidden" id="id" name="id" value="${changelist.id}">
        </div>
        <div class="form-group">

            <input type="hidden" id="pid" name="pid" value="${changelist.pid}">
        </div>

        <div class="form-group">
           <%-- <label for="info_a">需求描述</label>
            <input type="text" class="form-control" id="info_a" name="info_a" value="${changelist.info_a}" readonly="readonly" placeholder="请输入需求描述" />--%>
               <label for="info_a">需求描述</label>
               <textarea class="form-control" id="info_a" name="info_a" rows="3" cols="20" readonly placeholder="请输入需求描述">${changelist.info_a}</textarea>
        </div>
        <div class="form-group">
<%--            <label for="info_b">评估内容</label>--%>
<%--            <input type="text" class="form-control" id="info_b" name="info_b" value="${changelist.info_b}" readonly="readonly" placeholder="请输入评估内容" />--%>
    <label for="info_b">评估内容</label>
    <textarea class="form-control" id="info_b" name="info_b" rows="3" cols="20" readonly placeholder="请输入评估内容">${changelist.info_b}</textarea>
        </div>
<%--        <div class="form-group">--%>

<%--            <input type="hidden" id="state_id" name="state_id" value="${changelist.state_id}">--%>
<%--        </div>--%>
        <div class="form-group">
            <label>决策</label>
            <c:if test="${changelist.state_id == 2}">

                <input type="radio" name="state_id" value="2" checked />同意
<%--                <input type="radio" name="state_id" value="1"  />待决策--%>
                <input type="radio" name="state_id" value="0"  />不同意
            </c:if>
            <c:if test="${changelist.state_id == 1}">

                <input type="radio" name="state_id" value="2"  />同意
<%--                <input type="radio" name="state_id" value="1" checked />待决策--%>
                <input type="hidden" id="state_id" name="state_id" value="1">
                <input type="radio" name="state_id" value="0"  />不同意
            </c:if>

            <c:if test="${changelist.state_id == 0}">

                <input type="radio" name="state_id" value="2"  />同意
<%--                <input type="radio" name="state_id" value="1" checked />待决策--%>
                <input type="radio" name="state_id" value="0"  checked />不同意
            </c:if>
<%--            <c:choose>--%>
<%--                <c:when test="${changelist.state_id == 2}">--%>
<%--                    <input type="radio" name="state_id" value="2" checked />同意--%>
<%--                    &lt;%&ndash;                <input type="radio" name="state_id" value="1"  />待决策&ndash;%&gt;--%>
<%--                    <input type="radio" name="state_id" value="0"  />不同意--%>
<%--                </c:when>--%>
<%--                <c:when test="${changelist.state_id == 0}">星期二</c:when>--%>
<%--                <input type="radio" name="state_id" value="2"  />同意--%>
<%--                &lt;%&ndash;                <input type="radio" name="state_id" value="1" checked />待决策&ndash;%&gt;--%>
<%--                <input type="radio" name="state_id" value="0" checked  />不同意--%>

<%--                <c:otherwise>--%>
<%--                    <input type="radio" name="state_id" value="2"  />同意--%>
<%--                    &lt;%&ndash;                <input type="radio" name="state_id" value="1" checked />待决策&ndash;%&gt;--%>
<%--                    <input type="radio" name="state_id" value="0"  />不同意--%>
<%--                </c:otherwise>--%>
<%--            </c:choose>--%>


        </div>
        <div class="form-group">

            <input type="hidden" id="yid" name="yid" value="${changelist.yid}">
        </div>
        <div class="form-group">

            <input type="hidden" id="change_state" name="change_state" value="${changelist.change_state}">
        </div>
        <div class="form-group">

            <input type="hidden" id="check_state" name="check_state" value="${changelist.check_state}">
        </div>




        <div class="form-group" style="text-align: center">
            <input class="btn btn-primary" type="submit" value="提交" />
            <%--            <input class="btn btn-default" type="reset" value="重置" />--%>
            <%--            <input class="btn btn-default" type="button" value="返回"/>--%>
        </div>
    </form>
</div>
</body>
</html>